package com.foreknow.demo1;

import java.util.Scanner;

public class OperatorDemo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个数字:");
        int num = input.nextInt();
        //可以判断用户输入的数字是否是偶数
        char c = (num % 2 == 0) ? '是':'否';
        System.out.println(c);
    }
}
